//////////////////////////////////////////////////////////////////////////////
// Filename:          /tmp/infinibandfpga/Test_Harness/MyProcessorIPLib/drivers/infiniband_test_harness_v1_00_a/examples/infiniband_test_harness_v2_1_0_app.c
// Version:           1.00.a
// Description:       infiniband_test_harness (InfiniBand Link Layer Test Harness) Driver Example File
// Date:              Tue Apr  7 15:00:00 2009 (by Create and Import Peripheral Wizard)
//////////////////////////////////////////////////////////////////////////////

#include "infiniband_test_harness.h"

#include "xparameters.h"

/*
* Follwing is an example driver function 
* that is called in the main function.
*
* This example driver writes all the data in the input arguments
* into the input FSL bus through blocking writes. FSL peripheral will
* automatically read from the FSL bus. Once all the inputs
* have been written, the output from the FSL peripheral is read
* into output arguments through blocking reads.
*
* CAUTION:
*
* The sequence of writes and reads in this function should be consistent
* with the sequence of reads or writes in the HDL implementation of this
* coprocessor.
*
*/
// Instance name specific MACROs. Defined for each instance of the peripheral.
#define WRITE_INFINIBAND_TEST_HARNESS_0(val)  write_into_fsl(val, XPAR_FSL_INFINIBAND_TEST_HARNESS_0_INPUT_SLOT_ID)
#define READ_INFINIBAND_TEST_HARNESS_0(val)  read_from_fsl(val, XPAR_FSL_INFINIBAND_TEST_HARNESS_0_OUTPUT_SLOT_ID)

void infiniband_test_harness_app(
       unsigned int* input_0,      /* Array size = 512 */
       unsigned int* input_1,      /* Array size = 512 */
       unsigned int* output_0       /* Array size = 1024 */
       )
{
   int i;

   //Start writing into the FSL bus
   for (i=0; i<512; i++)
   {
      WRITE_INFINIBAND_TEST_HARNESS_0(input_0[i]);
      WRITE_INFINIBAND_TEST_HARNESS_0(input_1[i]);
   }

   //Start reading from the FSL bus
   for (i=0; i<1024; i++)
   {
      READ_INFINIBAND_TEST_HARNESS_0(output_0[i]);
   }
}

main()
{
	 unsigned int input_0[512];     
	 unsigned int input_1[512];     
	 unsigned int output_0[1024];     


#ifdef __PPC__
	 // Enable APU for PowerPC.
	 unsigned int msr_i;
	 msr_i = mfmsr();
	 msr_i = (msr_i | XREG_MSR_APU_AVAILABLE | XREG_MSR_APU_ENABLE) & ~XREG_MSR_USER_MODE;
	 mtmsr(msr_i);
#endif

	 //Initialize your input data over here: 
	 input_0[0] = 12345;     
	 input_0[1] = 24690;     
	 input_0[2] = 37035;     
	 input_0[3] = 49380;     
	 input_0[4] = 61725;     
	 input_0[5] = 74070;     
	 input_0[6] = 86415;     
	 input_0[7] = 98760;     
	 input_0[8] = 111105;     
	 input_0[9] = 123450;     
	 input_0[10] = 135795;     
	 input_0[11] = 148140;     
	 input_0[12] = 160485;     
	 input_0[13] = 172830;     
	 input_0[14] = 185175;     
	 input_0[15] = 197520;     
	 input_0[16] = 209865;     
	 input_0[17] = 222210;     
	 input_0[18] = 234555;     
	 input_0[19] = 246900;     
	 input_0[20] = 259245;     
	 input_0[21] = 271590;     
	 input_0[22] = 283935;     
	 input_0[23] = 296280;     
	 input_0[24] = 308625;     
	 input_0[25] = 320970;     
	 input_0[26] = 333315;     
	 input_0[27] = 345660;     
	 input_0[28] = 358005;     
	 input_0[29] = 370350;     
	 input_0[30] = 382695;     
	 input_0[31] = 395040;     
	 input_0[32] = 407385;     
	 input_0[33] = 419730;     
	 input_0[34] = 432075;     
	 input_0[35] = 444420;     
	 input_0[36] = 456765;     
	 input_0[37] = 469110;     
	 input_0[38] = 481455;     
	 input_0[39] = 493800;     
	 input_0[40] = 506145;     
	 input_0[41] = 518490;     
	 input_0[42] = 530835;     
	 input_0[43] = 543180;     
	 input_0[44] = 555525;     
	 input_0[45] = 567870;     
	 input_0[46] = 580215;     
	 input_0[47] = 592560;     
	 input_0[48] = 604905;     
	 input_0[49] = 617250;     
	 input_0[50] = 629595;     
	 input_0[51] = 641940;     
	 input_0[52] = 654285;     
	 input_0[53] = 666630;     
	 input_0[54] = 678975;     
	 input_0[55] = 691320;     
	 input_0[56] = 703665;     
	 input_0[57] = 716010;     
	 input_0[58] = 728355;     
	 input_0[59] = 740700;     
	 input_0[60] = 753045;     
	 input_0[61] = 765390;     
	 input_0[62] = 777735;     
	 input_0[63] = 790080;     
	 input_0[64] = 802425;     
	 input_0[65] = 814770;     
	 input_0[66] = 827115;     
	 input_0[67] = 839460;     
	 input_0[68] = 851805;     
	 input_0[69] = 864150;     
	 input_0[70] = 876495;     
	 input_0[71] = 888840;     
	 input_0[72] = 901185;     
	 input_0[73] = 913530;     
	 input_0[74] = 925875;     
	 input_0[75] = 938220;     
	 input_0[76] = 950565;     
	 input_0[77] = 962910;     
	 input_0[78] = 975255;     
	 input_0[79] = 987600;     
	 input_0[80] = 999945;     
	 input_0[81] = 1012290;     
	 input_0[82] = 1024635;     
	 input_0[83] = 1036980;     
	 input_0[84] = 1049325;     
	 input_0[85] = 1061670;     
	 input_0[86] = 1074015;     
	 input_0[87] = 1086360;     
	 input_0[88] = 1098705;     
	 input_0[89] = 1111050;     
	 input_0[90] = 1123395;     
	 input_0[91] = 1135740;     
	 input_0[92] = 1148085;     
	 input_0[93] = 1160430;     
	 input_0[94] = 1172775;     
	 input_0[95] = 1185120;     
	 input_0[96] = 1197465;     
	 input_0[97] = 1209810;     
	 input_0[98] = 1222155;     
	 input_0[99] = 1234500;     
	 input_0[100] = 1246845;     
	 input_0[101] = 1259190;     
	 input_0[102] = 1271535;     
	 input_0[103] = 1283880;     
	 input_0[104] = 1296225;     
	 input_0[105] = 1308570;     
	 input_0[106] = 1320915;     
	 input_0[107] = 1333260;     
	 input_0[108] = 1345605;     
	 input_0[109] = 1357950;     
	 input_0[110] = 1370295;     
	 input_0[111] = 1382640;     
	 input_0[112] = 1394985;     
	 input_0[113] = 1407330;     
	 input_0[114] = 1419675;     
	 input_0[115] = 1432020;     
	 input_0[116] = 1444365;     
	 input_0[117] = 1456710;     
	 input_0[118] = 1469055;     
	 input_0[119] = 1481400;     
	 input_0[120] = 1493745;     
	 input_0[121] = 1506090;     
	 input_0[122] = 1518435;     
	 input_0[123] = 1530780;     
	 input_0[124] = 1543125;     
	 input_0[125] = 1555470;     
	 input_0[126] = 1567815;     
	 input_0[127] = 1580160;     
	 input_0[128] = 1592505;     
	 input_0[129] = 1604850;     
	 input_0[130] = 1617195;     
	 input_0[131] = 1629540;     
	 input_0[132] = 1641885;     
	 input_0[133] = 1654230;     
	 input_0[134] = 1666575;     
	 input_0[135] = 1678920;     
	 input_0[136] = 1691265;     
	 input_0[137] = 1703610;     
	 input_0[138] = 1715955;     
	 input_0[139] = 1728300;     
	 input_0[140] = 1740645;     
	 input_0[141] = 1752990;     
	 input_0[142] = 1765335;     
	 input_0[143] = 1777680;     
	 input_0[144] = 1790025;     
	 input_0[145] = 1802370;     
	 input_0[146] = 1814715;     
	 input_0[147] = 1827060;     
	 input_0[148] = 1839405;     
	 input_0[149] = 1851750;     
	 input_0[150] = 1864095;     
	 input_0[151] = 1876440;     
	 input_0[152] = 1888785;     
	 input_0[153] = 1901130;     
	 input_0[154] = 1913475;     
	 input_0[155] = 1925820;     
	 input_0[156] = 1938165;     
	 input_0[157] = 1950510;     
	 input_0[158] = 1962855;     
	 input_0[159] = 1975200;     
	 input_0[160] = 1987545;     
	 input_0[161] = 1999890;     
	 input_0[162] = 2012235;     
	 input_0[163] = 2024580;     
	 input_0[164] = 2036925;     
	 input_0[165] = 2049270;     
	 input_0[166] = 2061615;     
	 input_0[167] = 2073960;     
	 input_0[168] = 2086305;     
	 input_0[169] = 2098650;     
	 input_0[170] = 2110995;     
	 input_0[171] = 2123340;     
	 input_0[172] = 2135685;     
	 input_0[173] = 2148030;     
	 input_0[174] = 2160375;     
	 input_0[175] = 2172720;     
	 input_0[176] = 2185065;     
	 input_0[177] = 2197410;     
	 input_0[178] = 2209755;     
	 input_0[179] = 2222100;     
	 input_0[180] = 2234445;     
	 input_0[181] = 2246790;     
	 input_0[182] = 2259135;     
	 input_0[183] = 2271480;     
	 input_0[184] = 2283825;     
	 input_0[185] = 2296170;     
	 input_0[186] = 2308515;     
	 input_0[187] = 2320860;     
	 input_0[188] = 2333205;     
	 input_0[189] = 2345550;     
	 input_0[190] = 2357895;     
	 input_0[191] = 2370240;     
	 input_0[192] = 2382585;     
	 input_0[193] = 2394930;     
	 input_0[194] = 2407275;     
	 input_0[195] = 2419620;     
	 input_0[196] = 2431965;     
	 input_0[197] = 2444310;     
	 input_0[198] = 2456655;     
	 input_0[199] = 2469000;     
	 input_0[200] = 2481345;     
	 input_0[201] = 2493690;     
	 input_0[202] = 2506035;     
	 input_0[203] = 2518380;     
	 input_0[204] = 2530725;     
	 input_0[205] = 2543070;     
	 input_0[206] = 2555415;     
	 input_0[207] = 2567760;     
	 input_0[208] = 2580105;     
	 input_0[209] = 2592450;     
	 input_0[210] = 2604795;     
	 input_0[211] = 2617140;     
	 input_0[212] = 2629485;     
	 input_0[213] = 2641830;     
	 input_0[214] = 2654175;     
	 input_0[215] = 2666520;     
	 input_0[216] = 2678865;     
	 input_0[217] = 2691210;     
	 input_0[218] = 2703555;     
	 input_0[219] = 2715900;     
	 input_0[220] = 2728245;     
	 input_0[221] = 2740590;     
	 input_0[222] = 2752935;     
	 input_0[223] = 2765280;     
	 input_0[224] = 2777625;     
	 input_0[225] = 2789970;     
	 input_0[226] = 2802315;     
	 input_0[227] = 2814660;     
	 input_0[228] = 2827005;     
	 input_0[229] = 2839350;     
	 input_0[230] = 2851695;     
	 input_0[231] = 2864040;     
	 input_0[232] = 2876385;     
	 input_0[233] = 2888730;     
	 input_0[234] = 2901075;     
	 input_0[235] = 2913420;     
	 input_0[236] = 2925765;     
	 input_0[237] = 2938110;     
	 input_0[238] = 2950455;     
	 input_0[239] = 2962800;     
	 input_0[240] = 2975145;     
	 input_0[241] = 2987490;     
	 input_0[242] = 2999835;     
	 input_0[243] = 3012180;     
	 input_0[244] = 3024525;     
	 input_0[245] = 3036870;     
	 input_0[246] = 3049215;     
	 input_0[247] = 3061560;     
	 input_0[248] = 3073905;     
	 input_0[249] = 3086250;     
	 input_0[250] = 3098595;     
	 input_0[251] = 3110940;     
	 input_0[252] = 3123285;     
	 input_0[253] = 3135630;     
	 input_0[254] = 3147975;     
	 input_0[255] = 3160320;     
	 input_0[256] = 3172665;     
	 input_0[257] = 3185010;     
	 input_0[258] = 3197355;     
	 input_0[259] = 3209700;     
	 input_0[260] = 3222045;     
	 input_0[261] = 3234390;     
	 input_0[262] = 3246735;     
	 input_0[263] = 3259080;     
	 input_0[264] = 3271425;     
	 input_0[265] = 3283770;     
	 input_0[266] = 3296115;     
	 input_0[267] = 3308460;     
	 input_0[268] = 3320805;     
	 input_0[269] = 3333150;     
	 input_0[270] = 3345495;     
	 input_0[271] = 3357840;     
	 input_0[272] = 3370185;     
	 input_0[273] = 3382530;     
	 input_0[274] = 3394875;     
	 input_0[275] = 3407220;     
	 input_0[276] = 3419565;     
	 input_0[277] = 3431910;     
	 input_0[278] = 3444255;     
	 input_0[279] = 3456600;     
	 input_0[280] = 3468945;     
	 input_0[281] = 3481290;     
	 input_0[282] = 3493635;     
	 input_0[283] = 3505980;     
	 input_0[284] = 3518325;     
	 input_0[285] = 3530670;     
	 input_0[286] = 3543015;     
	 input_0[287] = 3555360;     
	 input_0[288] = 3567705;     
	 input_0[289] = 3580050;     
	 input_0[290] = 3592395;     
	 input_0[291] = 3604740;     
	 input_0[292] = 3617085;     
	 input_0[293] = 3629430;     
	 input_0[294] = 3641775;     
	 input_0[295] = 3654120;     
	 input_0[296] = 3666465;     
	 input_0[297] = 3678810;     
	 input_0[298] = 3691155;     
	 input_0[299] = 3703500;     
	 input_0[300] = 3715845;     
	 input_0[301] = 3728190;     
	 input_0[302] = 3740535;     
	 input_0[303] = 3752880;     
	 input_0[304] = 3765225;     
	 input_0[305] = 3777570;     
	 input_0[306] = 3789915;     
	 input_0[307] = 3802260;     
	 input_0[308] = 3814605;     
	 input_0[309] = 3826950;     
	 input_0[310] = 3839295;     
	 input_0[311] = 3851640;     
	 input_0[312] = 3863985;     
	 input_0[313] = 3876330;     
	 input_0[314] = 3888675;     
	 input_0[315] = 3901020;     
	 input_0[316] = 3913365;     
	 input_0[317] = 3925710;     
	 input_0[318] = 3938055;     
	 input_0[319] = 3950400;     
	 input_0[320] = 3962745;     
	 input_0[321] = 3975090;     
	 input_0[322] = 3987435;     
	 input_0[323] = 3999780;     
	 input_0[324] = 4012125;     
	 input_0[325] = 4024470;     
	 input_0[326] = 4036815;     
	 input_0[327] = 4049160;     
	 input_0[328] = 4061505;     
	 input_0[329] = 4073850;     
	 input_0[330] = 4086195;     
	 input_0[331] = 4098540;     
	 input_0[332] = 4110885;     
	 input_0[333] = 4123230;     
	 input_0[334] = 4135575;     
	 input_0[335] = 4147920;     
	 input_0[336] = 4160265;     
	 input_0[337] = 4172610;     
	 input_0[338] = 4184955;     
	 input_0[339] = 4197300;     
	 input_0[340] = 4209645;     
	 input_0[341] = 4221990;     
	 input_0[342] = 4234335;     
	 input_0[343] = 4246680;     
	 input_0[344] = 4259025;     
	 input_0[345] = 4271370;     
	 input_0[346] = 4283715;     
	 input_0[347] = 4296060;     
	 input_0[348] = 4308405;     
	 input_0[349] = 4320750;     
	 input_0[350] = 4333095;     
	 input_0[351] = 4345440;     
	 input_0[352] = 4357785;     
	 input_0[353] = 4370130;     
	 input_0[354] = 4382475;     
	 input_0[355] = 4394820;     
	 input_0[356] = 4407165;     
	 input_0[357] = 4419510;     
	 input_0[358] = 4431855;     
	 input_0[359] = 4444200;     
	 input_0[360] = 4456545;     
	 input_0[361] = 4468890;     
	 input_0[362] = 4481235;     
	 input_0[363] = 4493580;     
	 input_0[364] = 4505925;     
	 input_0[365] = 4518270;     
	 input_0[366] = 4530615;     
	 input_0[367] = 4542960;     
	 input_0[368] = 4555305;     
	 input_0[369] = 4567650;     
	 input_0[370] = 4579995;     
	 input_0[371] = 4592340;     
	 input_0[372] = 4604685;     
	 input_0[373] = 4617030;     
	 input_0[374] = 4629375;     
	 input_0[375] = 4641720;     
	 input_0[376] = 4654065;     
	 input_0[377] = 4666410;     
	 input_0[378] = 4678755;     
	 input_0[379] = 4691100;     
	 input_0[380] = 4703445;     
	 input_0[381] = 4715790;     
	 input_0[382] = 4728135;     
	 input_0[383] = 4740480;     
	 input_0[384] = 4752825;     
	 input_0[385] = 4765170;     
	 input_0[386] = 4777515;     
	 input_0[387] = 4789860;     
	 input_0[388] = 4802205;     
	 input_0[389] = 4814550;     
	 input_0[390] = 4826895;     
	 input_0[391] = 4839240;     
	 input_0[392] = 4851585;     
	 input_0[393] = 4863930;     
	 input_0[394] = 4876275;     
	 input_0[395] = 4888620;     
	 input_0[396] = 4900965;     
	 input_0[397] = 4913310;     
	 input_0[398] = 4925655;     
	 input_0[399] = 4938000;     
	 input_0[400] = 4950345;     
	 input_0[401] = 4962690;     
	 input_0[402] = 4975035;     
	 input_0[403] = 4987380;     
	 input_0[404] = 4999725;     
	 input_0[405] = 5012070;     
	 input_0[406] = 5024415;     
	 input_0[407] = 5036760;     
	 input_0[408] = 5049105;     
	 input_0[409] = 5061450;     
	 input_0[410] = 5073795;     
	 input_0[411] = 5086140;     
	 input_0[412] = 5098485;     
	 input_0[413] = 5110830;     
	 input_0[414] = 5123175;     
	 input_0[415] = 5135520;     
	 input_0[416] = 5147865;     
	 input_0[417] = 5160210;     
	 input_0[418] = 5172555;     
	 input_0[419] = 5184900;     
	 input_0[420] = 5197245;     
	 input_0[421] = 5209590;     
	 input_0[422] = 5221935;     
	 input_0[423] = 5234280;     
	 input_0[424] = 5246625;     
	 input_0[425] = 5258970;     
	 input_0[426] = 5271315;     
	 input_0[427] = 5283660;     
	 input_0[428] = 5296005;     
	 input_0[429] = 5308350;     
	 input_0[430] = 5320695;     
	 input_0[431] = 5333040;     
	 input_0[432] = 5345385;     
	 input_0[433] = 5357730;     
	 input_0[434] = 5370075;     
	 input_0[435] = 5382420;     
	 input_0[436] = 5394765;     
	 input_0[437] = 5407110;     
	 input_0[438] = 5419455;     
	 input_0[439] = 5431800;     
	 input_0[440] = 5444145;     
	 input_0[441] = 5456490;     
	 input_0[442] = 5468835;     
	 input_0[443] = 5481180;     
	 input_0[444] = 5493525;     
	 input_0[445] = 5505870;     
	 input_0[446] = 5518215;     
	 input_0[447] = 5530560;     
	 input_0[448] = 5542905;     
	 input_0[449] = 5555250;     
	 input_0[450] = 5567595;     
	 input_0[451] = 5579940;     
	 input_0[452] = 5592285;     
	 input_0[453] = 5604630;     
	 input_0[454] = 5616975;     
	 input_0[455] = 5629320;     
	 input_0[456] = 5641665;     
	 input_0[457] = 5654010;     
	 input_0[458] = 5666355;     
	 input_0[459] = 5678700;     
	 input_0[460] = 5691045;     
	 input_0[461] = 5703390;     
	 input_0[462] = 5715735;     
	 input_0[463] = 5728080;     
	 input_0[464] = 5740425;     
	 input_0[465] = 5752770;     
	 input_0[466] = 5765115;     
	 input_0[467] = 5777460;     
	 input_0[468] = 5789805;     
	 input_0[469] = 5802150;     
	 input_0[470] = 5814495;     
	 input_0[471] = 5826840;     
	 input_0[472] = 5839185;     
	 input_0[473] = 5851530;     
	 input_0[474] = 5863875;     
	 input_0[475] = 5876220;     
	 input_0[476] = 5888565;     
	 input_0[477] = 5900910;     
	 input_0[478] = 5913255;     
	 input_0[479] = 5925600;     
	 input_0[480] = 5937945;     
	 input_0[481] = 5950290;     
	 input_0[482] = 5962635;     
	 input_0[483] = 5974980;     
	 input_0[484] = 5987325;     
	 input_0[485] = 5999670;     
	 input_0[486] = 6012015;     
	 input_0[487] = 6024360;     
	 input_0[488] = 6036705;     
	 input_0[489] = 6049050;     
	 input_0[490] = 6061395;     
	 input_0[491] = 6073740;     
	 input_0[492] = 6086085;     
	 input_0[493] = 6098430;     
	 input_0[494] = 6110775;     
	 input_0[495] = 6123120;     
	 input_0[496] = 6135465;     
	 input_0[497] = 6147810;     
	 input_0[498] = 6160155;     
	 input_0[499] = 6172500;     
	 input_0[500] = 6184845;     
	 input_0[501] = 6197190;     
	 input_0[502] = 6209535;     
	 input_0[503] = 6221880;     
	 input_0[504] = 6234225;     
	 input_0[505] = 6246570;     
	 input_0[506] = 6258915;     
	 input_0[507] = 6271260;     
	 input_0[508] = 6283605;     
	 input_0[509] = 6295950;     
	 input_0[510] = 6308295;     
	 input_0[511] = 6320640;     
	 input_1[0] = 12345;     
	 input_1[1] = 24690;     
	 input_1[2] = 37035;     
	 input_1[3] = 49380;     
	 input_1[4] = 61725;     
	 input_1[5] = 74070;     
	 input_1[6] = 86415;     
	 input_1[7] = 98760;     
	 input_1[8] = 111105;     
	 input_1[9] = 123450;     
	 input_1[10] = 135795;     
	 input_1[11] = 148140;     
	 input_1[12] = 160485;     
	 input_1[13] = 172830;     
	 input_1[14] = 185175;     
	 input_1[15] = 197520;     
	 input_1[16] = 209865;     
	 input_1[17] = 222210;     
	 input_1[18] = 234555;     
	 input_1[19] = 246900;     
	 input_1[20] = 259245;     
	 input_1[21] = 271590;     
	 input_1[22] = 283935;     
	 input_1[23] = 296280;     
	 input_1[24] = 308625;     
	 input_1[25] = 320970;     
	 input_1[26] = 333315;     
	 input_1[27] = 345660;     
	 input_1[28] = 358005;     
	 input_1[29] = 370350;     
	 input_1[30] = 382695;     
	 input_1[31] = 395040;     
	 input_1[32] = 407385;     
	 input_1[33] = 419730;     
	 input_1[34] = 432075;     
	 input_1[35] = 444420;     
	 input_1[36] = 456765;     
	 input_1[37] = 469110;     
	 input_1[38] = 481455;     
	 input_1[39] = 493800;     
	 input_1[40] = 506145;     
	 input_1[41] = 518490;     
	 input_1[42] = 530835;     
	 input_1[43] = 543180;     
	 input_1[44] = 555525;     
	 input_1[45] = 567870;     
	 input_1[46] = 580215;     
	 input_1[47] = 592560;     
	 input_1[48] = 604905;     
	 input_1[49] = 617250;     
	 input_1[50] = 629595;     
	 input_1[51] = 641940;     
	 input_1[52] = 654285;     
	 input_1[53] = 666630;     
	 input_1[54] = 678975;     
	 input_1[55] = 691320;     
	 input_1[56] = 703665;     
	 input_1[57] = 716010;     
	 input_1[58] = 728355;     
	 input_1[59] = 740700;     
	 input_1[60] = 753045;     
	 input_1[61] = 765390;     
	 input_1[62] = 777735;     
	 input_1[63] = 790080;     
	 input_1[64] = 802425;     
	 input_1[65] = 814770;     
	 input_1[66] = 827115;     
	 input_1[67] = 839460;     
	 input_1[68] = 851805;     
	 input_1[69] = 864150;     
	 input_1[70] = 876495;     
	 input_1[71] = 888840;     
	 input_1[72] = 901185;     
	 input_1[73] = 913530;     
	 input_1[74] = 925875;     
	 input_1[75] = 938220;     
	 input_1[76] = 950565;     
	 input_1[77] = 962910;     
	 input_1[78] = 975255;     
	 input_1[79] = 987600;     
	 input_1[80] = 999945;     
	 input_1[81] = 1012290;     
	 input_1[82] = 1024635;     
	 input_1[83] = 1036980;     
	 input_1[84] = 1049325;     
	 input_1[85] = 1061670;     
	 input_1[86] = 1074015;     
	 input_1[87] = 1086360;     
	 input_1[88] = 1098705;     
	 input_1[89] = 1111050;     
	 input_1[90] = 1123395;     
	 input_1[91] = 1135740;     
	 input_1[92] = 1148085;     
	 input_1[93] = 1160430;     
	 input_1[94] = 1172775;     
	 input_1[95] = 1185120;     
	 input_1[96] = 1197465;     
	 input_1[97] = 1209810;     
	 input_1[98] = 1222155;     
	 input_1[99] = 1234500;     
	 input_1[100] = 1246845;     
	 input_1[101] = 1259190;     
	 input_1[102] = 1271535;     
	 input_1[103] = 1283880;     
	 input_1[104] = 1296225;     
	 input_1[105] = 1308570;     
	 input_1[106] = 1320915;     
	 input_1[107] = 1333260;     
	 input_1[108] = 1345605;     
	 input_1[109] = 1357950;     
	 input_1[110] = 1370295;     
	 input_1[111] = 1382640;     
	 input_1[112] = 1394985;     
	 input_1[113] = 1407330;     
	 input_1[114] = 1419675;     
	 input_1[115] = 1432020;     
	 input_1[116] = 1444365;     
	 input_1[117] = 1456710;     
	 input_1[118] = 1469055;     
	 input_1[119] = 1481400;     
	 input_1[120] = 1493745;     
	 input_1[121] = 1506090;     
	 input_1[122] = 1518435;     
	 input_1[123] = 1530780;     
	 input_1[124] = 1543125;     
	 input_1[125] = 1555470;     
	 input_1[126] = 1567815;     
	 input_1[127] = 1580160;     
	 input_1[128] = 1592505;     
	 input_1[129] = 1604850;     
	 input_1[130] = 1617195;     
	 input_1[131] = 1629540;     
	 input_1[132] = 1641885;     
	 input_1[133] = 1654230;     
	 input_1[134] = 1666575;     
	 input_1[135] = 1678920;     
	 input_1[136] = 1691265;     
	 input_1[137] = 1703610;     
	 input_1[138] = 1715955;     
	 input_1[139] = 1728300;     
	 input_1[140] = 1740645;     
	 input_1[141] = 1752990;     
	 input_1[142] = 1765335;     
	 input_1[143] = 1777680;     
	 input_1[144] = 1790025;     
	 input_1[145] = 1802370;     
	 input_1[146] = 1814715;     
	 input_1[147] = 1827060;     
	 input_1[148] = 1839405;     
	 input_1[149] = 1851750;     
	 input_1[150] = 1864095;     
	 input_1[151] = 1876440;     
	 input_1[152] = 1888785;     
	 input_1[153] = 1901130;     
	 input_1[154] = 1913475;     
	 input_1[155] = 1925820;     
	 input_1[156] = 1938165;     
	 input_1[157] = 1950510;     
	 input_1[158] = 1962855;     
	 input_1[159] = 1975200;     
	 input_1[160] = 1987545;     
	 input_1[161] = 1999890;     
	 input_1[162] = 2012235;     
	 input_1[163] = 2024580;     
	 input_1[164] = 2036925;     
	 input_1[165] = 2049270;     
	 input_1[166] = 2061615;     
	 input_1[167] = 2073960;     
	 input_1[168] = 2086305;     
	 input_1[169] = 2098650;     
	 input_1[170] = 2110995;     
	 input_1[171] = 2123340;     
	 input_1[172] = 2135685;     
	 input_1[173] = 2148030;     
	 input_1[174] = 2160375;     
	 input_1[175] = 2172720;     
	 input_1[176] = 2185065;     
	 input_1[177] = 2197410;     
	 input_1[178] = 2209755;     
	 input_1[179] = 2222100;     
	 input_1[180] = 2234445;     
	 input_1[181] = 2246790;     
	 input_1[182] = 2259135;     
	 input_1[183] = 2271480;     
	 input_1[184] = 2283825;     
	 input_1[185] = 2296170;     
	 input_1[186] = 2308515;     
	 input_1[187] = 2320860;     
	 input_1[188] = 2333205;     
	 input_1[189] = 2345550;     
	 input_1[190] = 2357895;     
	 input_1[191] = 2370240;     
	 input_1[192] = 2382585;     
	 input_1[193] = 2394930;     
	 input_1[194] = 2407275;     
	 input_1[195] = 2419620;     
	 input_1[196] = 2431965;     
	 input_1[197] = 2444310;     
	 input_1[198] = 2456655;     
	 input_1[199] = 2469000;     
	 input_1[200] = 2481345;     
	 input_1[201] = 2493690;     
	 input_1[202] = 2506035;     
	 input_1[203] = 2518380;     
	 input_1[204] = 2530725;     
	 input_1[205] = 2543070;     
	 input_1[206] = 2555415;     
	 input_1[207] = 2567760;     
	 input_1[208] = 2580105;     
	 input_1[209] = 2592450;     
	 input_1[210] = 2604795;     
	 input_1[211] = 2617140;     
	 input_1[212] = 2629485;     
	 input_1[213] = 2641830;     
	 input_1[214] = 2654175;     
	 input_1[215] = 2666520;     
	 input_1[216] = 2678865;     
	 input_1[217] = 2691210;     
	 input_1[218] = 2703555;     
	 input_1[219] = 2715900;     
	 input_1[220] = 2728245;     
	 input_1[221] = 2740590;     
	 input_1[222] = 2752935;     
	 input_1[223] = 2765280;     
	 input_1[224] = 2777625;     
	 input_1[225] = 2789970;     
	 input_1[226] = 2802315;     
	 input_1[227] = 2814660;     
	 input_1[228] = 2827005;     
	 input_1[229] = 2839350;     
	 input_1[230] = 2851695;     
	 input_1[231] = 2864040;     
	 input_1[232] = 2876385;     
	 input_1[233] = 2888730;     
	 input_1[234] = 2901075;     
	 input_1[235] = 2913420;     
	 input_1[236] = 2925765;     
	 input_1[237] = 2938110;     
	 input_1[238] = 2950455;     
	 input_1[239] = 2962800;     
	 input_1[240] = 2975145;     
	 input_1[241] = 2987490;     
	 input_1[242] = 2999835;     
	 input_1[243] = 3012180;     
	 input_1[244] = 3024525;     
	 input_1[245] = 3036870;     
	 input_1[246] = 3049215;     
	 input_1[247] = 3061560;     
	 input_1[248] = 3073905;     
	 input_1[249] = 3086250;     
	 input_1[250] = 3098595;     
	 input_1[251] = 3110940;     
	 input_1[252] = 3123285;     
	 input_1[253] = 3135630;     
	 input_1[254] = 3147975;     
	 input_1[255] = 3160320;     
	 input_1[256] = 3172665;     
	 input_1[257] = 3185010;     
	 input_1[258] = 3197355;     
	 input_1[259] = 3209700;     
	 input_1[260] = 3222045;     
	 input_1[261] = 3234390;     
	 input_1[262] = 3246735;     
	 input_1[263] = 3259080;     
	 input_1[264] = 3271425;     
	 input_1[265] = 3283770;     
	 input_1[266] = 3296115;     
	 input_1[267] = 3308460;     
	 input_1[268] = 3320805;     
	 input_1[269] = 3333150;     
	 input_1[270] = 3345495;     
	 input_1[271] = 3357840;     
	 input_1[272] = 3370185;     
	 input_1[273] = 3382530;     
	 input_1[274] = 3394875;     
	 input_1[275] = 3407220;     
	 input_1[276] = 3419565;     
	 input_1[277] = 3431910;     
	 input_1[278] = 3444255;     
	 input_1[279] = 3456600;     
	 input_1[280] = 3468945;     
	 input_1[281] = 3481290;     
	 input_1[282] = 3493635;     
	 input_1[283] = 3505980;     
	 input_1[284] = 3518325;     
	 input_1[285] = 3530670;     
	 input_1[286] = 3543015;     
	 input_1[287] = 3555360;     
	 input_1[288] = 3567705;     
	 input_1[289] = 3580050;     
	 input_1[290] = 3592395;     
	 input_1[291] = 3604740;     
	 input_1[292] = 3617085;     
	 input_1[293] = 3629430;     
	 input_1[294] = 3641775;     
	 input_1[295] = 3654120;     
	 input_1[296] = 3666465;     
	 input_1[297] = 3678810;     
	 input_1[298] = 3691155;     
	 input_1[299] = 3703500;     
	 input_1[300] = 3715845;     
	 input_1[301] = 3728190;     
	 input_1[302] = 3740535;     
	 input_1[303] = 3752880;     
	 input_1[304] = 3765225;     
	 input_1[305] = 3777570;     
	 input_1[306] = 3789915;     
	 input_1[307] = 3802260;     
	 input_1[308] = 3814605;     
	 input_1[309] = 3826950;     
	 input_1[310] = 3839295;     
	 input_1[311] = 3851640;     
	 input_1[312] = 3863985;     
	 input_1[313] = 3876330;     
	 input_1[314] = 3888675;     
	 input_1[315] = 3901020;     
	 input_1[316] = 3913365;     
	 input_1[317] = 3925710;     
	 input_1[318] = 3938055;     
	 input_1[319] = 3950400;     
	 input_1[320] = 3962745;     
	 input_1[321] = 3975090;     
	 input_1[322] = 3987435;     
	 input_1[323] = 3999780;     
	 input_1[324] = 4012125;     
	 input_1[325] = 4024470;     
	 input_1[326] = 4036815;     
	 input_1[327] = 4049160;     
	 input_1[328] = 4061505;     
	 input_1[329] = 4073850;     
	 input_1[330] = 4086195;     
	 input_1[331] = 4098540;     
	 input_1[332] = 4110885;     
	 input_1[333] = 4123230;     
	 input_1[334] = 4135575;     
	 input_1[335] = 4147920;     
	 input_1[336] = 4160265;     
	 input_1[337] = 4172610;     
	 input_1[338] = 4184955;     
	 input_1[339] = 4197300;     
	 input_1[340] = 4209645;     
	 input_1[341] = 4221990;     
	 input_1[342] = 4234335;     
	 input_1[343] = 4246680;     
	 input_1[344] = 4259025;     
	 input_1[345] = 4271370;     
	 input_1[346] = 4283715;     
	 input_1[347] = 4296060;     
	 input_1[348] = 4308405;     
	 input_1[349] = 4320750;     
	 input_1[350] = 4333095;     
	 input_1[351] = 4345440;     
	 input_1[352] = 4357785;     
	 input_1[353] = 4370130;     
	 input_1[354] = 4382475;     
	 input_1[355] = 4394820;     
	 input_1[356] = 4407165;     
	 input_1[357] = 4419510;     
	 input_1[358] = 4431855;     
	 input_1[359] = 4444200;     
	 input_1[360] = 4456545;     
	 input_1[361] = 4468890;     
	 input_1[362] = 4481235;     
	 input_1[363] = 4493580;     
	 input_1[364] = 4505925;     
	 input_1[365] = 4518270;     
	 input_1[366] = 4530615;     
	 input_1[367] = 4542960;     
	 input_1[368] = 4555305;     
	 input_1[369] = 4567650;     
	 input_1[370] = 4579995;     
	 input_1[371] = 4592340;     
	 input_1[372] = 4604685;     
	 input_1[373] = 4617030;     
	 input_1[374] = 4629375;     
	 input_1[375] = 4641720;     
	 input_1[376] = 4654065;     
	 input_1[377] = 4666410;     
	 input_1[378] = 4678755;     
	 input_1[379] = 4691100;     
	 input_1[380] = 4703445;     
	 input_1[381] = 4715790;     
	 input_1[382] = 4728135;     
	 input_1[383] = 4740480;     
	 input_1[384] = 4752825;     
	 input_1[385] = 4765170;     
	 input_1[386] = 4777515;     
	 input_1[387] = 4789860;     
	 input_1[388] = 4802205;     
	 input_1[389] = 4814550;     
	 input_1[390] = 4826895;     
	 input_1[391] = 4839240;     
	 input_1[392] = 4851585;     
	 input_1[393] = 4863930;     
	 input_1[394] = 4876275;     
	 input_1[395] = 4888620;     
	 input_1[396] = 4900965;     
	 input_1[397] = 4913310;     
	 input_1[398] = 4925655;     
	 input_1[399] = 4938000;     
	 input_1[400] = 4950345;     
	 input_1[401] = 4962690;     
	 input_1[402] = 4975035;     
	 input_1[403] = 4987380;     
	 input_1[404] = 4999725;     
	 input_1[405] = 5012070;     
	 input_1[406] = 5024415;     
	 input_1[407] = 5036760;     
	 input_1[408] = 5049105;     
	 input_1[409] = 5061450;     
	 input_1[410] = 5073795;     
	 input_1[411] = 5086140;     
	 input_1[412] = 5098485;     
	 input_1[413] = 5110830;     
	 input_1[414] = 5123175;     
	 input_1[415] = 5135520;     
	 input_1[416] = 5147865;     
	 input_1[417] = 5160210;     
	 input_1[418] = 5172555;     
	 input_1[419] = 5184900;     
	 input_1[420] = 5197245;     
	 input_1[421] = 5209590;     
	 input_1[422] = 5221935;     
	 input_1[423] = 5234280;     
	 input_1[424] = 5246625;     
	 input_1[425] = 5258970;     
	 input_1[426] = 5271315;     
	 input_1[427] = 5283660;     
	 input_1[428] = 5296005;     
	 input_1[429] = 5308350;     
	 input_1[430] = 5320695;     
	 input_1[431] = 5333040;     
	 input_1[432] = 5345385;     
	 input_1[433] = 5357730;     
	 input_1[434] = 5370075;     
	 input_1[435] = 5382420;     
	 input_1[436] = 5394765;     
	 input_1[437] = 5407110;     
	 input_1[438] = 5419455;     
	 input_1[439] = 5431800;     
	 input_1[440] = 5444145;     
	 input_1[441] = 5456490;     
	 input_1[442] = 5468835;     
	 input_1[443] = 5481180;     
	 input_1[444] = 5493525;     
	 input_1[445] = 5505870;     
	 input_1[446] = 5518215;     
	 input_1[447] = 5530560;     
	 input_1[448] = 5542905;     
	 input_1[449] = 5555250;     
	 input_1[450] = 5567595;     
	 input_1[451] = 5579940;     
	 input_1[452] = 5592285;     
	 input_1[453] = 5604630;     
	 input_1[454] = 5616975;     
	 input_1[455] = 5629320;     
	 input_1[456] = 5641665;     
	 input_1[457] = 5654010;     
	 input_1[458] = 5666355;     
	 input_1[459] = 5678700;     
	 input_1[460] = 5691045;     
	 input_1[461] = 5703390;     
	 input_1[462] = 5715735;     
	 input_1[463] = 5728080;     
	 input_1[464] = 5740425;     
	 input_1[465] = 5752770;     
	 input_1[466] = 5765115;     
	 input_1[467] = 5777460;     
	 input_1[468] = 5789805;     
	 input_1[469] = 5802150;     
	 input_1[470] = 5814495;     
	 input_1[471] = 5826840;     
	 input_1[472] = 5839185;     
	 input_1[473] = 5851530;     
	 input_1[474] = 5863875;     
	 input_1[475] = 5876220;     
	 input_1[476] = 5888565;     
	 input_1[477] = 5900910;     
	 input_1[478] = 5913255;     
	 input_1[479] = 5925600;     
	 input_1[480] = 5937945;     
	 input_1[481] = 5950290;     
	 input_1[482] = 5962635;     
	 input_1[483] = 5974980;     
	 input_1[484] = 5987325;     
	 input_1[485] = 5999670;     
	 input_1[486] = 6012015;     
	 input_1[487] = 6024360;     
	 input_1[488] = 6036705;     
	 input_1[489] = 6049050;     
	 input_1[490] = 6061395;     
	 input_1[491] = 6073740;     
	 input_1[492] = 6086085;     
	 input_1[493] = 6098430;     
	 input_1[494] = 6110775;     
	 input_1[495] = 6123120;     
	 input_1[496] = 6135465;     
	 input_1[497] = 6147810;     
	 input_1[498] = 6160155;     
	 input_1[499] = 6172500;     
	 input_1[500] = 6184845;     
	 input_1[501] = 6197190;     
	 input_1[502] = 6209535;     
	 input_1[503] = 6221880;     
	 input_1[504] = 6234225;     
	 input_1[505] = 6246570;     
	 input_1[506] = 6258915;     
	 input_1[507] = 6271260;     
	 input_1[508] = 6283605;     
	 input_1[509] = 6295950;     
	 input_1[510] = 6308295;     
	 input_1[511] = 6320640;     

	 //Call the macro with instance specific slot IDs
	 infiniband_test_harness(
		 XPAR_FSL_INFINIBAND_TEST_HARNESS_0_INPUT_SLOT_ID,
		 XPAR_FSL_INFINIBAND_TEST_HARNESS_0_OUTPUT_SLOT_ID,
		 input_0,    
		 input_1,      
		 output_0       
		 );

	 // You can also define your own function to access the peripheral
	 // Here you are calling the example function defined above
	 // Note the slot ID can not be passed over as function parameters
	 infiniband_test_harness_app(
		 input_0,    
		 input_1,      
		 output_0       
		 );

}

